package com.yxjx.duoxue.datamodel.school;

import java.io.Serializable;
import java.util.ArrayList;

import com.yxjx.duoxue.datamodel.DMAuth;
import com.yxjx.duoxue.datamodel.DMCommentLevelAvg;
import com.yxjx.duoxue.datamodel.DMCourseCategory;

public class DMSchool implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2184665338456291295L;
	private long mId;
	// band name
	private String mOrgnizationName;
	// branch name
	private String mFullSchoolName;
	private String mShortSchoolName;
	// registered name
	private String mCompanyName;
	private String mCompanyLicences;
	
	private int mProvinceId;
	private int mCityId;
	private int mAreaId;
	
	private String mAddress;
	private String mContactName;
	private String mContactPhone;
	// introduction and prospect
	private String mDescription;
	private String mAchivement;
	private String mIdea;
	
	private int mOperatorUserId;
	private String mLastOperatorTime;
	private String mCreateTime;
	private String mStatus;
	
	private String mPhoneNumbers;
	private String mSchoolImage;
	private String mSchoolGps;
	private int visitCount;
	private ArrayList<DMAuth> authArray = new ArrayList<DMAuth>();
	
	private DMCommentLevelAvg mSchoolCommentLevel;
	
	// 轮播图
    private String imageTurn = "";
    // 新增4个大项17个细项的新增维度
    private SchoolDetailBrandDTS schoolBrand = new SchoolDetailBrandDTS();
    private SchoolDetailEnvironmentDTS schoolEnviroment = new SchoolDetailEnvironmentDTS();
    private SchoolDetailTeacherDTS schoolTeacher = new SchoolDetailTeacherDTS();
    private SchoolDetailServiceDTS schoolService = new SchoolDetailServiceDTS();
	
	private ArrayList<DMCourseCategory> mMainCourses = new ArrayList<DMCourseCategory>();
	
	public long getId() {
		return mId;
	}
	public void setId(long id) {
		this.mId = id;
	}
	public String getOrgnizationName() {
		return mOrgnizationName;
	}
	public void setOrgnizationName(String orgnizationName) {
		this.mOrgnizationName = orgnizationName;
	}
	public String getFullSchoolName() {
		return mFullSchoolName;
	}
	public void setFullSchoolName(String fullSchoolName) {
		this.mFullSchoolName = fullSchoolName;
	}
	public String getShortSchoolName() {
		return mShortSchoolName;
	}
	public void setShortSchoolName(String shortSchoolName) {
		this.mShortSchoolName = shortSchoolName;
	}
	public String getCompanyName() {
		return mCompanyName;
	}
	public void setCompanyName(String companyName) {
		this.mCompanyName = companyName;
	}
	public String getCompanyLicences() {
		return mCompanyLicences;
	}
	public void setCompanyLicences(String companyLicences) {
		this.mCompanyLicences = companyLicences;
	}
	public int getProvinceId() {
		return mProvinceId;
	}
	public void setProvinceId(int provinceId) {
		this.mProvinceId = provinceId;
	}
	public int getCityId() {
		return mCityId;
	}
	public void setCityId(int cityId) {
		this.mCityId = cityId;
	}
	public int getAreaId() {
		return mAreaId;
	}
	public void setAreaId(int areaId) {
		this.mAreaId = areaId;
	}
	public String getAddress() {
		return mAddress;
	}
	public void setAddress(String address) {
		this.mAddress = address;
	}
	public String getContactName() {
		return mContactName;
	}
	public void setContactName(String contactName) {
		this.mContactName = contactName;
	}
	public String getContactPhone() {
		return mContactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.mContactPhone = contactPhone;
	}
	public String getDescription() {
		return mDescription;
	}
	public void setDescription(String description) {
		this.mDescription = description;
	}
	public String getAchivement() {
		return mAchivement;
	}
	public void setAchivement(String achivement) {
		this.mAchivement = achivement;
	}
	public String getIdea() {
		return mIdea;
	}
	public void setIdea(String idea) {
		this.mIdea = idea;
	}
	public int getOperatorUserId() {
		return mOperatorUserId;
	}
	public void setOperatorUserId(int operatorUserId) {
		this.mOperatorUserId = operatorUserId;
	}
	public String getLastOperatorTime() {
		return mLastOperatorTime;
	}
	public void setLastOperatorTime(String lastOperatorTime) {
		this.mLastOperatorTime = lastOperatorTime;
	}
	public String getCreateTime() {
		return mCreateTime;
	}
	public void setCreateTime(String createTime) {
		this.mCreateTime = createTime;
	}
	public String getStatus() {
		return mStatus;
	}
	public void setStatus(String status) {
		this.mStatus = status;
	}
	public String getPhoneNumbers() {
		return mPhoneNumbers;
	}
	public void setPhoneNumbers(String mPhoneNumbers) {
		this.mPhoneNumbers = mPhoneNumbers;
	}
	public String getSchoolImage() {
		return mSchoolImage;
	}
	public void setSchoolImage(String mSchoolImage) {
		this.mSchoolImage = mSchoolImage;
	}
	public ArrayList<DMCourseCategory> getMainCourses() {
		return mMainCourses;
	}
	public void setMainCourses(ArrayList<DMCourseCategory> mMainCourses) {
		this.mMainCourses = mMainCourses;
	}
	
	public String getCoursesText() {
		if (mMainCourses == null || mMainCourses.size() == 0) {
			return "其他";
		} else {
			String items = "";
			for (DMCourseCategory category : mMainCourses) {
				items += category.getStr() + "、";
			}
			items.trim();
			return items.substring(0, items.length() -1);
		}
	}
	public String getSchoolGps() {
		return mSchoolGps;
	}
	public void setSchoolGps(String mSchoolGps) {
		this.mSchoolGps = mSchoolGps;
	}
	public DMCommentLevelAvg getSchoolCommentLevel() {
		return mSchoolCommentLevel;
	}
	public void setSchoolCommentLevel(DMCommentLevelAvg schoolCommentLevel) {
		this.mSchoolCommentLevel = schoolCommentLevel;
	}
	public int getVisitCount() {
		return visitCount;
	}
	public void setVisitCount(int visitCount) {
		this.visitCount = visitCount;
	}
	public ArrayList<DMAuth> getAuthArray() {
		return authArray;
	}
	public void setAuthArray(ArrayList<DMAuth> authArray) {
		this.authArray = authArray;
	}
	public SchoolDetailBrandDTS getSchoolBrand() {
		return schoolBrand;
	}
	public void setSchoolBrand(SchoolDetailBrandDTS schoolBrand) {
		this.schoolBrand = schoolBrand;
	}
	public String getImageTurn() {
		return imageTurn;
	}
	public void setImageTurn(String imageTurn) {
		this.imageTurn = imageTurn;
	}
	public SchoolDetailEnvironmentDTS getSchoolEnviroment() {
		return schoolEnviroment;
	}
	public void setSchoolEnviroment(SchoolDetailEnvironmentDTS schoolEnviroment) {
		this.schoolEnviroment = schoolEnviroment;
	}
	public SchoolDetailTeacherDTS getSchoolTeacher() {
		return schoolTeacher;
	}
	public void setSchoolTeacher(SchoolDetailTeacherDTS schoolTeacher) {
		this.schoolTeacher = schoolTeacher;
	}
	public SchoolDetailServiceDTS getSchoolService() {
		return schoolService;
	}
	public void setSchoolService(SchoolDetailServiceDTS schoolService) {
		this.schoolService = schoolService;
	}
	
}
